package pl.edu.agh.broker.service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import pl.edu.agh.broker.proxy.ProxyBroker;
import pl.edu.agh.stock.data.IndexDataPoint;

@Produces( { "application/xml", "application/json" })
@Path("/index/")
public class ProxyService {
	@GET
	public IndexDataPoint getIndex() {
		return ProxyBroker.getInstance().getIndex();
	}
}
